package com.example.demobetwixt.po;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lzh
 * @date 2019/11/13 - 14:13
 */
public class Clss {
    private int id;

    private String name;

    private List<Student> students = new ArrayList<Student>();

    /**
     * Add a student.
     * @param student
     */
    public void addStudent(Student student){
        this.students.add(student);
    }

    /**
     * Remove a student.
     * @param student
     */
    public void removeStudent(Student student){
        this.students.remove(student);
    }

    /**
     * @return the id
     */

    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the students
     */
    public List<Student> getStudents() {
        return students;
    }

    /**
     * @param students the students to set
     */
    public void setStudents(List<Student> students) {
        this.students = students;
    }
}
